package lab02.test22;

public class Test22 {
    public static void main(String[] args) {

        String result = "Hello, 2017 , Wrld!";

        //输出结果：hello##0000##world#
        /**
         *
         * 1.大写字母 -> 小写字母
         * 2.数字 -> 0
         * 3.其他 -> #
         */

        for(int i = 0;i < result.length();i++) {
            char temp = result.charAt(i);

            if (temp >= 'A' && temp <= 'Z') {
                System.out.print((char)(temp+32));


            }else if (temp >= 'a' && temp <='z') {
                System.out.print(temp);
            }else if (temp >= '0' && temp <= '9') {
                System.out.print("0");
            }else{
                System.out.print("#");
            }
        }
    }
}
